#if !defined(__BLOB_H__)
#define __BLOB_H__

#include "BlobDetection.h"

namespace blobDetection
{


class BlobDetection;
//==================================================
//class Blob
//==================================================
class Blob
{

public: 
	
	BlobDetection *parent;
	
	int   	id;
	float 	x,y;   // position of its center
	float 	w,h;   // width & height
	float 	xMin, xMax, yMin, yMax;

	int* 	line;  
	int 		nbLine;
	bool ok;
	
	static int MAX_NBLINE;    
	Blob();
	Blob(bool isOk);
	Blob(BlobDetection *parent);
	~Blob();
	bool isOk();
	void setParent(BlobDetection *parent);	
	EdgeVertex getEdgeVertexA(int iEdge);
	EdgeVertex getEdgeVertexB(int iEdge);
	int getEdgeNb();
	void update();

};

}

#endif